package com.luochen.cdpt.repository;

import com.luochen.cdpt.eneity.User;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(path = "/user")
public interface IUserRepository extends PagingAndSortingRepository<User,Long>,QuerydslPredicateExecutor<User>{
	User findByUsername(String username);
}
